﻿@{
    ViewBag.Title = "流程线条设置";
    Layout = "~/Views/Shared/_Form.cshtml";
}
@Html.AppendCssFile("/Areas/LR_NewWorkFlow/Views/NWFScheme/LineForm.css")
<div style="position:relative;width:100%;height:100%;">
    <div class="lr-form-tabs" id="lr_form_tabs">
        <ul class="nav nav-tabs">
            <li class="active"><a data-value="baseInfo"><span class="lrlg">基本配置</span></a></li>
            <li><a data-value="operation"><span class="lrlg">绑定操作</span></a></li>
        </ul>
    </div>
    <div class="tab-content" id="tab_content">
        <div id="baseInfo" class="tab-pane  lr-form-wrap active">
            <div class="col-xs-12 lr-form-item">
                <div class="lr-form-item-title">名称</div>
                <input id="name" type="text" class="form-control" placeholder="请输入名称" />
            </div>
            <div class="col-xs-12 lr-form-item">
                <div class="lr-form-item-title">颜色</div>
                <div id="color"></div>
            </div>
            <div class="col-xs-12 lr-form-item">
                <div class="lr-form-item-title">通过策略</div>
                <div id="strategy"></div>
            </div>
            <div class="col-xs-12 lr-form-item" style="display:none;">
                <div class="lr-form-item-title">通过项</div>
                <div id="agreeList"></div>
            </div>
        </div>
        <div id="operation" class="tab-pane" style="position:relative;width:100%;height:100%;padding:5px;">
            <div style="position:relative;border:1px solid #ccc;width:100%;height:100%;padding-top:39px;">
                <div id="operationTypeDiv" style="position:absolute;top:0;left:0;width:100%;height:39px;border-bottom:1px solid #ccc;">
                    <div class="col-xs-12 lr-form-item">
                        <div class="lr-form-item-title"><span class="lrlg">操作类型</span></div>
                        <div class="radio lr-radio" type="lr-radio" id="operationType">
                            <label>
                                <input name="operationType" type="radio" value="sql" checked="checked" />
                                sql
                            </label>
                            <label>
                                <input name="operationType" type="radio" value="interface" />
                                <span class="lrlg">接口</span>
</label>
                            <label>
                                <input name="operationType" type="radio" value="ioc" />
                                <span class="lrlg">依赖注入方法</span>
</label>
                        </div>
                    </div>
                </div>
                <div style="position:relative;width:100%;height:100%;">
                    <div id="sql" class="operationDiv"  style="position:relative;width:100%;height:100%;padding-top:73px;">
                        <div style="position:absolute;height:66px;width:100%;padding:5px;top:0;left:0;">
                            <div class="alert alert-danger" style="position:relative;text-align: left;margin:0;">
                                <i class="fa fa-question-circle alert-dismissible" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
                                <span class="lrlg">注意：请在开发人员指导下进行配置SQL语句（{processId}流程发起实例主键{userId}用户Id{userAccount}用户账号{companyId}用户公司{departmentId}用户部门{code}上一节点操作码）！</span>
</div>
                        </div>
                        <div class="lr-form-wrap" style="padding:5px 5px 8px 5px;padding-top:40px;">
                            <div style="position:absolute;left:0;top:5px;width:100%;height:28px;padding:0 5px;"><div id="dbId" style="position:relative;width:100%;height:100%;"></div></div>
                            <textarea id="strSql" class="form-control" style="height: 50%" placeholder="请填写Sql语句"></textarea>
                            <textarea id="strSqlR" class="form-control" style="height: 50%;margin-top:3px;" placeholder="请填写Sql语句（撤销执行）"></textarea>
                        </div>
                    </div>
                    <div id="interface" class="operationDiv" style="position:relative;width:100%;height:100%;display:none;padding-top:90px;">
                        <div style="position:absolute;height:54px;width:100%;padding:5px;top:0;left:0;">
                            <div class="alert alert-danger" style="position:relative;text-align: left;margin:0;">
                                <i class="fa fa-question-circle alert-dismissible" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
                                <span class="lrlg">注意：必须要开发人员指导下进行配置支持Post方法的接口,json数据格式。{processId:'流程发起实例主键',userId:'用户Id',userAccount:'用户账号',companyId:'用户公司',departmentId:'用户部门',code:'上一节点操作码'}(或咨询售后人员)！</span>
</div>
                        </div>
                        <div class="lr-form-wrap" style="padding:5px 5px 8px 5px;">
                            <textarea id="strInterface" class="form-control" placeholder="请填写接口地址" style="height: 50%"></textarea>
                            <textarea id="strInterfaceR" class="form-control" placeholder="请填写接口地址（撤销执行）" style="height: 50%;margin-top:3px;"></textarea>
                        </div>

                    </div>
                    <div id="ioc" class="operationDiv" style="position:relative;width:100%;height:100%;display:none;padding-top:54px;">
                        <div style="position:absolute;height:54px;width:100%;padding:5px;top:0;left:0;">
                            <div class="alert alert-danger" style="position:relative;text-align: left;margin:0;">
                                <i class="fa fa-question-circle alert-dismissible" style="position: relative; top: 1px; font-size: 15px; padding-right: 5px;"></i>
                                <span class="lrlg">注意：必须要开发人员指导下进行配置注册的IOC方法名(或咨询售后人员)！</span>
</div>
                        </div>
                        <div class="lr-form-wrap" style="padding:5px 5px 8px 5px;">
                            <textarea id="iocName" class="form-control" placeholder="请填写方法名" style="height: 50%"></textarea>
                            <textarea id="iocNameR" class="form-control" placeholder="请填写方法名（撤销执行）" style="height: 50%;margin-top:3px;"></textarea>
                        </div>

                    </div>
                </div>
            </div>


          
        </div>
    </div>
</div>
@Html.AppendJsFile("/Areas/LR_NewWorkFlow/Views/NWFScheme/LineForm.js")

